package com.qing.annotation.exception;

import com.qing.annotation.factory.module.SimpleFactoryAnnotatedClass;

/**
 * id已被使用
 * @author qing
 * 2023/9/17
 */
public class IdAlreadyUsedException extends Exception{

    private final SimpleFactoryAnnotatedClass mAnnotatedClass;

    public IdAlreadyUsedException(SimpleFactoryAnnotatedClass annotatedClass) {
        this.mAnnotatedClass = annotatedClass;
    }

    public SimpleFactoryAnnotatedClass getExisting() {
        return mAnnotatedClass;
    }
}
